export default {
    sliceParam(param) {
        return Object.assign({
            date: new Date,
            format: 0,
            calSign: '-',
            hourSign: ':',
        }, param)
    },
    createDate(date){
        if(date instanceof Date) {
            return date
        } else if(date){
            return new Date(date)
        } else {
            return new Date()
        }
    }
}